<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function foo(name, age, height, address) {
            console.log("foo:", this);
            console.log("参数:", name, age, height, address);
        }
        var obj = { name: "gkd" };

        let bar = foo.bind(obj)
        bar()
        
        let barWithArgs = foo.bind(obj,'simple',27,1.73)
        barWithArgs('monesy')
    </script>
</body>
</html>